package com.example.demo;

import com.example.demo.service.impl.Weather;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/aq")
@Slf4j
public class WeatherContral {
    @Resource
    Weather weather;

    @RequestMapping("/tq")
    public  String tq(){
        String url = this.weather.getWeath();
        log.info("打印日志");
        System.out.println("nishiwodei");
        System.out.println("222");
        System.out.println("woshinidei");
        return url;
    }
}
